package com.ktjy.ch15.mapper;

import com.ktjy.ch15.entity.Video;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VideoMapper {

    public Video getByTitle(@Param("title") String title);

    public List<Video> getPage(@Param("video") Video video,
                                  @Param("pageBegin") Integer pageBegin,
                                  @Param("pageSize") Integer pageSize);

    public Integer count(@Param("video") Video video);

    public int insert(Video video);

    public Video getById(@Param("id") Long id);

    public int update(Video video);

    public int delete(@Param("id") Long id);
}
